
<%@ page import="com.opeace.Adult" %>
<!doctype html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'adult.label', default: 'Adult')}" />
		<title><g:message code="default.show.label" args="[entityName]" /></title>
	</head>
	<body>
		<a href="#show-adult" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
		
		<table align="center" width="100%">
                  <tr>

		<td align="left" width="50%" style="vertical-align: top;">
			<g:if test="${flash.message}">
			<div class="message" role="status">${flash.message}</div>
			</g:if>
			<ol class="property-list adult">
                          
                                <g:if test="${adultInstance?.firstName}">
				<li class="fieldcontain">
					<span id="firstName-label" class="property-label"><g:message code="adult.firstName.label" default="First Name" /></span>
					
						<span class="property-value" aria-labelledby="firstName-label"><g:fieldValue bean="${adultInstance}" field="firstName"/></span>
					
				</li>
				</g:if>
                          
                                <g:if test="${adultInstance?.middleName}">
				<li class="fieldcontain">
					<span id="middleName-label" class="property-label"><g:message code="adult.middleName.label" default="Middle Name" /></span>
					
						<span class="property-value" aria-labelledby="middleName-label"><g:fieldValue bean="${adultInstance}" field="middleName"/></span>
					
				</li>
				</g:if>
			
                                <g:if test="${adultInstance?.lastName}">
				<li class="fieldcontain">
					<span id="lastName-label" class="property-label"><g:message code="adult.lastName.label" default="Last Name" /></span>
					
						<span class="property-value" aria-labelledby="lastName-label"><g:fieldValue bean="${adultInstance}" field="lastName"/></span>
					
				</li>
				</g:if>
                          
                                <g:if test="${adultInstance?.birthDate}">
				<li class="fieldcontain">
					<span id="birthDate-label" class="property-label"><g:message code="adult.birthDate.label" default="Birth Date" /></span>
					
						<span class="property-value" aria-labelledby="birthDate-label"><g:formatDate format="MM-dd-yyyy" date="${adultInstance?.birthDate}" /></span>
					
				</li>
				</g:if>
                          
                                <g:if test="${adultInstance?.gender}">
				<li class="fieldcontain">
					<span id="gender-label" class="property-label"><g:message code="adult.gender.label" default="Gender" /></span>
					
						<span class="property-value" aria-labelledby="gender-label"><g:fieldValue bean="${adultInstance}" field="gender"/></span>
					
				</li>
				</g:if>
                          
                                <g:if test="${adultInstance?.addressLine}">
				<li class="fieldcontain">
					<span id="addressLine-label" class="property-label"><g:message code="adult.addressLine.label" default="Address Line" /></span>
					
						<span class="property-value" aria-labelledby="addressLine-label"><g:fieldValue bean="${adultInstance}" field="addressLine"/></span>
					
				</li>
				</g:if>
                            
				<g:if test="${adultInstance?.addressAPT}">
				<li class="fieldcontain">
					<span id="addressAPT-label" class="property-label"><g:message code="adult.addressAPT.label" default="Address APT" /></span>
					
						<span class="property-value" aria-labelledby="addressAPT-label"><g:fieldValue bean="${adultInstance}" field="addressAPT"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${adultInstance?.addressCity}">
				<li class="fieldcontain">
					<span id="addressCity-label" class="property-label"><g:message code="adult.addressCity.label" default="Address City" /></span>
					
						<span class="property-value" aria-labelledby="addressCity-label"><g:fieldValue bean="${adultInstance}" field="addressCity"/></span>
					
				</li>
				</g:if>
			
				
			
				<g:if test="${adultInstance?.addressState}">
				<li class="fieldcontain">
					<span id="addressState-label" class="property-label"><g:message code="adult.addressState.label" default="Address State" /></span>
					
						<span class="property-value" aria-labelledby="addressState-label"><g:fieldValue bean="${adultInstance}" field="addressState"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${adultInstance?.addressZip}">
				<li class="fieldcontain">
					<span id="addressZip-label" class="property-label"><g:message code="adult.addressZip.label" default="Address Zip" /></span>
					
						<span class="property-value" aria-labelledby="addressZip-label"><g:formatNumber number="${adultInstance.addressZip}" format="#####" /></span>
					
				</li>
				</g:if>
			
			
				<g:if test="${adultInstance?.dateCreated}">
				<li class="fieldcontain">
					<span id="dateCreated-label" class="property-label"><g:message code="adult.dateCreated.label" default="Date Created" /></span>
					
						<span class="property-value" aria-labelledby="dateCreated-label"><g:formatDate format="MM-dd-yyyy" date="${adultInstance?.dateCreated}" /></span>
					
				</li>
				</g:if>
			
				<g:if test="${adultInstance?.employer}">
				<li class="fieldcontain">
					<span id="employer-label" class="property-label"><g:message code="adult.employer.label" default="Employer" /></span>
					
						<span class="property-value" aria-labelledby="employer-label"><g:fieldValue bean="${adultInstance}" field="employer"/></span>
					
				</li>
				</g:if>
			
				
			
				
			
				
			
				<g:if test="${adultInstance?.homePhone}">
				<li class="fieldcontain">
					<span id="homePhone-label" class="property-label"><g:message code="adult.homePhone.label" default="Home Phone" /></span>
					
						<span class="property-value" aria-labelledby="homePhone-label"><g:fieldValue bean="${adultInstance}" field="homePhone"/></span>
					
				</li>
				</g:if>
			
				
			
				
                          
                                <g:if test="${adultInstance?.workPhone}">
				<li class="fieldcontain">
					<span id="workPhone-label" class="property-label"><g:message code="adult.workPhone.label" default="Work Phone" /></span>
					
						<span class="property-value" aria-labelledby="workPhone-label"><g:fieldValue bean="${adultInstance}" field="workPhone"/></span>
					
				</li>
				</g:if>
                          
                                <g:if test="${adultInstance?.careerInterest}">
				<li class="fieldcontain">
					<span id="careerInterest-label" class="property-label"><g:message code="adult.careerInterest.label" default="Career Interest" /></span>
					
						<span class="property-value" aria-labelledby="careerInterest-label"><g:fieldValue bean="${adultInstance}" field="careerInterest"/></span>
					
				</li>
				</g:if>
                          
                                <g:if test="${adultInstance?.forms}">
				<li class="fieldcontain">
					<span id="forms-label" class="property-label"><g:message code="adult.forms.label" default="Forms" /></span>
					
						<g:each in="${adultInstance.forms}" var="f">
						<span class="property-value" aria-labelledby="forms-label"><g:link controller="form" action="show" id="${f.id}">${f?.form.name.encodeAsHTML()}</g:link></span>
						</g:each>
					
				</li>
				</g:if>
			
				<g:if test="${adultInstance?.programs}">
				<li class="fieldcontain">
					<span id="programs-label" class="property-label"><g:message code="adult.programs.label" default="Programs" /></span>
					
						<g:each in="${adultInstance.programs}" var="p">
						<span class="property-value" aria-labelledby="programs-label"><g:link controller="personProgram" action="show" id="${p.id}">${p?.program.name.encodeAsHTML()}</g:link></span>
						</g:each>
					
				</li>
				</g:if>
			
				<g:if test="${adultInstance?.relationships1}">
				<li class="fieldcontain">
					<span id="relationships1-label" class="property-label"><g:message code="adult.relationships1.label" default="Relationships1" /></span>
					
						<g:each in="${adultInstance.relationships1}" var="r">
						<span class="property-value" aria-labelledby="relationships1-label"><g:link controller="personPerson" action="show" id="${r.id}">${r?.person2.firstName.encodeAsHTML()} ${r?.person2.lastName.encodeAsHTML()}</g:link></span>
						</g:each>
					
				</li>
				</g:if>
			
				<g:if test="${adultInstance?.relationships2}">
				<li class="fieldcontain">
					<span id="relationships2-label" class="property-label"><g:message code="adult.relationships2.label" default="Relationships2" /></span>
					
						<g:each in="${adultInstance.relationships2}" var="r">
						<span class="property-value" aria-labelledby="relationships2-label"><g:link controller="personPerson" action="show" id="${r.id}">${r?.person2.firstName.encodeAsHTML()} ${r?.person2.lastName.encodeAsHTML()}</g:link></span>
						</g:each>
					
				</li>
				</g:if>
			
			
			</ol>
			<g:form>
				<fieldset class="buttons">
					<g:hiddenField name="id" value="${adultInstance?.id}" />
					<g:link class="edit" action="edit" id="${adultInstance?.id}"><g:message code="default.button.edit.label" default="Edit" /></g:link>
					<g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" />
				</fieldset>
			</g:form>
                  
                  
     <div class="fieldcontain ${hasErrors(bean: adultInstance, field: 'forms', 'error')} ">
		
		
	
<ul class="one-to-many">
<li class="add">
<g:message code="adult.forms.label" default="Forms" />
<g:link controller="personForm" action="create" params="['adult.id': adultInstance?.id]">${message(code: 'default.add.label', args: [message(code: 'form.label', default: 'Form')])}</g:link>
</li>
</ul>

</div>

                  <div class="fieldcontain ${hasErrors(bean: adultInstance, field: 'programs', 'error')} ">
		
	
	
<ul class="one-to-many">
<li class="add">
<g:message code="adult.programs.label" default="Programs" />
<g:link controller="personProgram" action="create" params="['adult.id': adultInstance?.id]">${message(code: 'default.add.label', args: [message(code: 'personProgram.label', default: 'Program')])}</g:link>
</li>
</ul>

</div>

<div class="fieldcontain ${hasErrors(bean: adultInstance, field: 'relationships1', 'error')} ">

	
<ul class="one-to-many">
<li class="add">
  <g:message code="adult.relationships1.label" default="Relationships1" />
<g:link controller="personPerson" action="create" params="['adult.id': adultInstance?.id]">${message(code: 'default.add.label', args: [message(code: 'personPerson.label', default: 'Person')])}</g:link>
</li>
</ul>

</div>

<div class="fieldcontain ${hasErrors(bean: adultInstance, field: 'relationships2', 'error')} ">

	
<ul class="one-to-many">
<li class="add">
  <g:message code="adult.relationships2.label" default="Relationships2" />
<g:link controller="personPerson" action="create" params="['adult.id': adultInstance?.id]">${message(code: 'default.add.label', args: [message(code: 'personPerson.label', default: 'Person')])}</g:link>
</li>
</ul>

</div>
                </td>
                  </tr>

	</table>
         <div class="nav" role="navigation">
			<ul>
				<li><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></li>
			</ul>
                      </div>
		
	</body>
</html>
